package com.flying.oop.poly;

/**
 * @ClassName: Base
 * @author: 刘鹏飞
 * @date 2023/7/20 18:19
 * @Description:
 */
class Base {

    int m=5;
    static int i=888;
    public Base() {
        System.out.println("base里的this = "+ this);
        this.method(100);  //  调用子类的method方法
        test();
        System.out.println("Base里的this.m="+this.m);
        System.out.println("Base里的this.i="+ this.i);

    }

    {
        System.out.println("base");
    }

    public void method(int i){
        System.out.println("base : "+i);
    }

    public static void test(){
        System.out.println("Base里的静态方法");
    }
}
